/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ManagedProperty;
import javax.faces.component.UIInput;
import main.game.GameConventions;
import main.models.Hall;
import main.models.Player;

/**
 *
 * @author Ariman
 */
@ManagedBean
@RequestScoped
public class ConvSelectController {

    @ManagedProperty (value = "#{hall}")
    private Hall hall;
    @ManagedProperty (value = "#{player}")
    private Player player;
    @ManagedProperty (value = "#{gameConventions}")
    private GameConventions gameConventions;
    private UIInput typeOfGame;
    private UIInput poolLength;
    private UIInput wistPrice;
    private UIInput stalingrad;
    private UIInput typeWist;
    private UIInput bezTrex;
    private UIInput progression;
    private UIInput pogresKoef;
    private UIInput raspasExit;
    private UIInput vGoru;

    public String CreateGame() {
        return hall.CreateGame(player, gameConventions);
    }

    public Hall getHall() {
        return hall;
    }

    public void setHall(Hall hall) {
        this.hall = hall;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public GameConventions getGameConventions() {
        return gameConventions;
    }

    public void setGameConventions(GameConventions gameConventions) {
        this.gameConventions = gameConventions;
    }

    public UIInput getvGoru() {
        return vGoru;
    }

    public void setvGoru(UIInput vGoru) {
        this.vGoru = vGoru;
    }

    public UIInput getTypeOfGame() {
        return typeOfGame;
    }

    public void setTypeOfGame(UIInput typeOfGame) {
        this.typeOfGame = typeOfGame;
    }

    public UIInput getPoolLength() {
        return poolLength;
    }

    public void setPoolLength(UIInput poolLength) {
        this.poolLength = poolLength;
    }

    public UIInput getWistPrice() {
        return wistPrice;
    }

    public void setWistPrice(UIInput wistPrice) {
        this.wistPrice = wistPrice;
    }

    public UIInput getStalingrad() {
        return stalingrad;
    }

    public void setStalingrad(UIInput stalingrad) {
        this.stalingrad = stalingrad;
    }

    public UIInput getTypeWist() {
        return typeWist;
    }

    public void setTypeWist(UIInput typeWist) {
        this.typeWist = typeWist;
    }

    public UIInput getBezTrex() {
        return bezTrex;
    }

    public void setBezTrex(UIInput bezTrex) {
        this.bezTrex = bezTrex;
    }

    public UIInput getProgression() {
        return progression;
    }

    public void setProgression(UIInput progression) {
        this.progression = progression;
    }

    public UIInput getPogresKoef() {
        return pogresKoef;
    }

    public void setPogresKoef(UIInput pogresKoef) {
        this.pogresKoef = pogresKoef;
    }

    public UIInput getRaspasExit() {
        return raspasExit;
    }

    public void setRaspasExit(UIInput raspasExit) {
        this.raspasExit = raspasExit;
    }
}
